<?php
/**
 * Config Price Admin
 * Настройки обновления магазина
 * Шаблон
 */
// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );
?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div style="width:100%;float:left;">
<fieldset class="adminform">
    <table class="admintable" width="">
	<?php foreach($this->rows as $k=>$row):?>
		<tr >
            <td  align="left"  style="text-align:left;">
               <?php echo $row[3];?>
            </td>
			<td valign="top">
				<select name="compare[<?php echo $row[1];?>]">
					<option value="0"></option>
					<?php  
					$option = "";
					$catId = 0;
					foreach($this->comparison as $key=>$compare){
						if($compare[0] == $row[1])
							$catId = $compare[1];						
					}
					foreach($this->categories as $category) {
						$option .= '<option value="'.$category[id].'"';
						if($category[id]==$catId)
							$option.= ' selected ';
						$option.= '>'.$category[name].'</option>';
					}
					echo $option;
						?>
				</select>
            </td>
        </tr>	
	<?php endforeach;?>	
    </table>
    
</fieldset>

</div>
<input type="hidden" name="view" value="update_settings" />
<input type="hidden" name="option" value="com_shop" />
<input type="hidden" name="task" value="" />


</form>

